package org.uim.cricket.analyzer.analyze;

import java.util.*;

import org.uim.cricket.entities.aggr.SingleInning;
import org.uim.cricket.entities.match.CricketMatch;

public interface InningMappable  {

	/**
	 * Creates a map containing all the innings corresponding to each team
	 * played in the match. The key will be the team's name and items will be
	 * the innings corresponding to that team.
	 * 
	 * @param match The match to be analyzed. Inning list will be fetched from
	 * the match.
	 * @return A map containing the team name as keys, and corresponding values
	 * are the innings belongs to that team.
	 */
	public Map<String, List<SingleInning>> getInningMap(CricketMatch match);
	
}
